
/*
 * @Description: 路由配置表
 * @Author: ligy
 * @Date: 2022-03-20 22:20:39
 * @LastEditTime: 2022-03-21 12:42:20
 */
import  Home from '../component/home/home.vue'
const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    component: () => import('../views/login/login.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: Home,
    redirect: '/welcome',
    children: [
      {
        path: '/welcome',
        name: 'welcome',
        component: () => import('../component/welcome/welcome.vue')
      },
      {
        path: '/users',
        name: 'user',
        component: () => import('../views/users/user.vue'),
        prop: true
      }
    ]
  }
]
export default routes
